﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;

namespace web_CategoryMS
{
    public partial class Main : System.Web.UI.Page
    {
        public string strLI = "";//功能列表
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //SetUp();
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this, typeof(Page), "", "alert('" + "系统异常，异常信息：" + ex.Message + "');", true);
            }
        }

        private void SetUp()
        {
            sUser userInfo = Session["LoginInfo"] as sUser;
            //if (userInfo.vcUserType == "0")
            //{
                
            //    SetGuanLi_UL();
            //    this.lbl_GuanLi.Visible = true;
            //}
            //else if (userInfo.vcUserType == "1")
            //{
            //    this.lbl_GuanLi.Visible = false;
            //    SetUser_UL();
            //}
        }

        private void SetGuanLi_UL()
        {
            StringBuilder strUL = new StringBuilder();

               
            //strUL.AppendLine("<li>");
            //strUL.AppendLine("    <a href='View/G01/FS0101.aspx' target='myframe'>用户管理</a>");
            //strUL.AppendLine("</li>");
            //strUL.AppendLine("<li>");
            //strUL.AppendLine("    <a href='View/G01/FS0102.aspx' target='myframe'>项目管理</a>");
            //strUL.AppendLine("</li>");
            //strUL.AppendLine("<li>");
            //strUL.AppendLine("    <a href='View/G01/FS0103.aspx' target='myframe'>需求管理</a>");
            //strUL.AppendLine("</li>");
            //strUL.AppendLine("<li>");
            //strUL.AppendLine("    <a href='View/G01/FS0104.aspx' target='myframe'>订单管理</a>");
            //strUL.AppendLine("</li>");
            //strLI = strUL.ToString();
        }

        private void SetUser_UL()
        {
            StringBuilder strUL = new StringBuilder();
            strUL.AppendLine("<li>");
            strUL.AppendLine("    <a href='View/G02/FS0201.aspx' target='myframe'>需求选择</a>");
            strUL.AppendLine("</li>");
            strUL.AppendLine("<li>");
            strUL.AppendLine("    <a href='View/G02/FS0202.aspx' target='myframe'>购物车</a>");
            strUL.AppendLine("</li>");
            strUL.AppendLine("<li>");
            strUL.AppendLine("    <a href='View/G02/FS0203.aspx' target='myframe'>订单管理</a>");
            strUL.AppendLine("</li>");
            //strLI = strUL.ToString();
        }
    }
}